<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/9/17
 * Time: 23:27
 */
namespace app\common\business;
use app\common\model\mysql\SpecsValue as SpecsValueModel;
class BusBase{

    /**
     * 新增
     * @param $data
     * @return bool|mixed
     */
    public function add($data){
        $data['status'] = config("status.mysql.table_normal");
        try{
            $this->model->save($data);
        }catch (\Exception $exception){
            return 0;
        }
        return $this->model->id;
    }

}
